package com.xf.system.http.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author xiefengf
 */
@ApiModel(description = "新增用户入参")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class UserAddReqDTO {

    @Schema(description = "用户账号（登录名称）")
    @NotBlank(message = "用户账号不能为空")
    private String userName;

    @Schema(description = "用户昵称")
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "用户邮箱")
    @Email(message = "用户邮箱格式不正确")
    private String email;

    @Schema(description = "手机号码")
    private String phoneNumber;

    @Schema(description = "用户性别（0男 1女 2未知）")
    private String gender;

    @Schema(description = "帐号状态（0正常 1停用）")
    private String status;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "部门Id集合")
    private List<Long> deptIdList;

    @Schema(description = "角色Id集合")
    private List<Long> roleIdList;

    @Schema(description = "岗位Id集合")
    private List<Long> postIdList;

}
